
export default{
	namespaced:true,
	state:()=>({
		statusBarH:0,
		customBarH:0,
		paddingTop:0,
		paddingButtom:0,
		menuHeight:0,
		windowWidth:0,
		menuleft:0
	}),
	mutations:{
		update_statusBarH(state,statusBar){
			state.statusBarH=statusBar
		},
		update_customBarH(state,customBar){
			state.customBarH=customBar
		},
		update_paddingTop(state,paddingTop){
			state.paddingTop=paddingTop
		},
		update_paddingButtom(state,paddingButtom){
			state.paddingButtom=paddingButtom
		},
		update_menuHeiht(state,menuHeiht){
			state.menuHeight=menuHeiht
		},
		update_windowWidth(state,windowWidth){
			state.windowWidth=windowWidth
		},
		update_menuleft(state,menuleft){
			state.menuleft=menuleft
		}
	},
	getters:{
		navBarHeight(state){
			return (state.paddingTop - state.statusBarH) * 2 + state.menuHeight + state.statusBarH
		},
		menuBotton(state){
			return state.paddingTop - state.statusBarH
		}
	}
}